﻿@using Webdiyer.WebControls.Mvc
@using XXF.Extensions;
@model PagedList<Dyd.BaseService.ConfigManager.Domain.Model.tb_category_model>

<table class="mytable" width="100%">
    <tr>
        <th style="width:5%">Id</th>
        <th style="width:15%">名称</th>
        <th style="width:50%">备注</th>
        <th style="width:15%">创建时间</th>
        <th style="width:15%">操作</th>
    </tr>
    @foreach (var item in Model)
    {
        <tr data-id="@item.id">
            <td>@item.id</td>
            <td style="text-align:left;">@item.name</td>
            <td style="text-align:left" title="@item.remark">@item.remark.SubString3(55)</td>
            <td>@item.createtime</td>
            <td>
                <a href="#" class="edit">修改</a>
                <a href="#" class="del">删除</a>
                 <a href="#" class="reload" title="通知客户端重新加载配置">客户端重启</a>
                <a href="@Url.Action("ProjectIndex", "Project", new {categoryid=item.id })" target="_blank">相关项目</a>
            </td>
        </tr>
    }
</table>
<div class="total pt10">
    <div class="fl">共<em>@Model.TotalPageCount</em>页<em>@Model.TotalItemCount</em>条记录，当前为第<em>@Model.CurrentPageIndex</em>页</div>
    @Html.Pager(Model, new PagerOptions { PageIndexParameterName = "pageIndex", ShowPageIndexBox = true, PageIndexBoxType = PageIndexBoxType.TextBox, CssClass = "mvcPager" })
</div>